package at.ac.tuwien.infosys.dsg.daiosPlugins.nativeInvoker;

import at.ac.tuwien.infosys.dsg.daios.framework.DaiosInterceptor;
import at.ac.tuwien.infosys.dsg.daios.framework.PollObject;
import at.ac.tuwien.infosys.dsg.daios.framework.structs.DaiosOutputMessage;

/**
 * A Poll Object for client-side asynchrony.
 * 
 * @author philipp
 *
 */
public class NativePollObject extends PollObject {
	
	/**
	 * Construct a new Poll Object.
	 *
	 */
	NativePollObject() {}
	
	/**
	 * Set the result of the Poll Object.
	 * 
	 * @param result
	 */
	void setResult(DaiosOutputMessage result) {
		this.result = result;
	}
	
	/**
	 * Set the error of the Poll Object (if an error
	 * occured).
	 * 
	 * @param e
	 */
	void setError(Exception e) {
		this.error = e;
	}
}
